package com.jerry.wschat.security.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author Jerry.Wu
 * @description:
 * @date 2018/9/12 19:51
 */
public class PasswordEncodeUtils {

    public static String bCryptPasswordEncode(String str) {
        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
        String strEncode = bCryptPasswordEncoder.encode(str);
        return strEncode;
    }

}
